﻿using Abp;
using Castle.Facilities.Logging;
using System;
using System.Windows.Forms;

namespace AH.WinFromUI
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            using (var bootstrapper = AbpBootstrapper.Create<AHWinFromUIModule>())
            {
                bootstrapper.IocManager.IocContainer.AddFacility<LoggingFacility>(f => f.UseLog4Net().WithConfig("log4net.config"));

                bootstrapper.Initialize();

                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(bootstrapper.IocManager.Resolve<MainFrom>());
            }
        }
    }
}
